from home.models import Article


def Quan(request):
    new_arts = Article.objects.order_by('-create_time')[:2]
    hot_tags = Article.objects.values('tags').order_by('-total_views').distinct()[:9]
    return {'hot_tags': hot_tags,
            'new_arts': new_arts,}